package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService {

    User findByUsername(String username);

    PageResult pageQuery(QueryPageBean queryPageBean);

    void add(User user,Integer[] roleIds) throws Exception;

    List<Integer> findRolesByUserId(Integer userId);

    void updateRoleAndUserId(Integer userId, Integer[] roleIds,User user);

    void delete(Integer id);

    User findUserById(Integer id);


    void updatePassword(Map map, String username);
}
